<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  mounted() {
    console.log(123456789)
    window.addEventListener("popstate", () => {
      console.log(window.location.pathname);
      this.$router.push(window.location.pathname);
    });
  },
};
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
  color: #2c3e50;
}
body {
  margin: 0;
  //background-color: #f5f5f5;
}
* {
  box-sizing: border-box;
}
</style>
